export interface GetUserListApiParams {
  page: number;
  limit: number;
  username: string;
}

export interface UserItem {
  id?: number;
  gmtCreate?: string;
  gmtModified?: string;
  username: string; // 用户名
  nickName: string; // 用户昵称
  password: string; // 用户密码
  roleName?: string; // 角色列表
}

export type UserList = UserItem[];

export interface GetUserListApiResponse {
  items: UserList;
  total: number;
}

export interface RoleItem {
  id: number;
  roleName: string;
}

export type RoleList = RoleItem[];

export interface GetUserRoleResponse {
  // 已经安排的角色列表
  assignRoles: RoleList;
  // 所有角色列表
  allRolesList: RoleList;
}
